﻿@model List<_2._4增删改查.Models.Person>

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div> 
        <table border="1">
            <thead>
                <tr>
                    <td>Name</td>
                    <td>HireDate</td>
                    <td>EnrollmentDate</td>
                    <td>Detail</td>
                    <td>Delect</td>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@item.FirstName @item.LastName</td>
                        <td>@item.HireDate</td>
                        <td>@item.EnrollmentDate</td>
                        <td><a href="Detail/@item.PersonID">详情</a></td>
                        <td><a href="/Default/Delect/@item.PersonID">删除</a></td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</body>
</html>
